package com.dr.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.mapper.RegisterMapper;
import com.dr.pojo.Register;
import com.dr.service.RegisterService;

@Service
@Transactional
public class RegisterServiceImpl implements RegisterService {
	@Autowired
	private RegisterMapper mapper;

	@Override
	public String nextCaseNumber() {
		return mapper.nextCaseNumber();
	}

	@Override
	public Register findRegisterByCaseNumber(String caseNumber) {
		return mapper.findRegisterByCaseNumber(caseNumber);
	}

	@Override
	public int insertRegister(Register register) {
		return mapper.insertRegister(register);
	}
	
}